package com.wilmer.api;

import com.wilmer.common.core.controller.BaseController;
import com.wilmer.common.core.domain.AjaxResult;
import com.wilmer.common.core.page.TableDataInfo;
import com.wilmer.options.service.IYwOptionsService;
import com.wilmer.papers.domain.YwPapers;
import com.wilmer.papers.service.IYwPapersService;
import com.wilmer.question.domain.YwQuestion;
import com.wilmer.question.service.IYwQuestionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/api/papers")
public class PapersApi extends BaseController {
    @Autowired
    private IYwPapersService ywPapersService;


    //查看试卷整个详情
    @GetMapping("/getInfo/{paperId}")
    public AjaxResult getInfo(@PathVariable Long paperId) {
        YwPapers ywPapers = ywPapersService.selectYwPapersAll(paperId);
        return success(ywPapers);
    }

    //考试情况录入
}
